
#include "Logic_PowerStapler.h"

//*********************************************************************
/* Error code process
 * input void 
 * return: void
 * author: Guichuan.He
 * date: 2016-10-09
*/
//**********************************************************************
void Logic_ErrorProcess()
{
    switch( PowerStaplerData.ErrorCode )
    {
        case NORMAL_WORK:
            break;
        case STERILIZATION_COUNT_OVER:
            break;
        case POWER_MANAGE_BATTERY_NO_INSTALL:
        case ELASTIC_CLOSURE_OVER_TIME:
        case ELASTIC_OPEN_OVER_TIME:
        case POWER_CURRENT_ALERT:                          
        case POWER_ACCUMULATED_CHARGE_OVER_UNDERFLOW:      
        case  POWER_TEMPERATURE_ALERT:                      
        case POWER_CHARGE_ALERT_HIGH:                      
        case POWER_CHARGE_ALERT_LOW:                       
        case POWER_CHARGE_VOLTAGE_ALERT:                   
        case POWER_UNDERVOLTAGE_LOCKOUT_ALERT:             
        default:
            break;
    }
}

//*********************************************************************
/* check power stapler error
 * input void 
 * return: error code
 * author: Guichuan.He
 * date: 2016-10-09
*/
//**********************************************************************
uint Logic_ErrorProcess_CheckPowerStapler()
{
   
    return 0;
}